#ifndef WXSSIZERPARENTQP_H
#define WXSSIZERPARENTQP_H

#include <wx/sizer.h>
#include <wx/checkbox.h>
#include <wx/spinctrl.h>
#include <wx/statline.h>
#include <wx/radiobut.h>
#include <wx/panel.h>

#include "wxssizer.h"
#include "../wxsadvqppchild.h"

class wxsSizerParentQP: public wxsAdvQPPChild {
  public:

    wxsSizerParentQP( wxsAdvQPP* parent, wxsSizerExtra* Extra );
    virtual ~wxsSizerParentQP();

    //(*Identifiers(wxsSizerParentQP)
    static const long ID_CHECKBOX1;
    static const long ID_CHECKBOX2;
    static const long ID_CHECKBOX8;
    static const long ID_CHECKBOX3;
    static const long ID_CHECKBOX4;
    static const long ID_SPINCTRL1;
    static const long ID_CHECKBOX7;
    static const long ID_RADIOBUTTON4;
    static const long ID_RADIOBUTTON5;
    static const long ID_RADIOBUTTON6;
    static const long ID_RADIOBUTTON7;
    static const long ID_RADIOBUTTON8;
    static const long ID_RADIOBUTTON9;
    static const long ID_RADIOBUTTON10;
    static const long ID_RADIOBUTTON11;
    static const long ID_RADIOBUTTON12;
    static const long ID_STATICLINE1;
    static const long ID_CHECKBOX6;
    static const long ID_CHECKBOX5;
    static const long ID_SPINCTRL2;

  protected:

    //(*Handlers(wxsSizerParentQP)
    void OnBrdChange( wxCommandEvent& event );
    void OnBrdSizeChange( wxSpinEvent& event );
    void OnPlaceChange( wxCommandEvent& event );
    void OnProportionChange( wxSpinEvent& event );
    void OnBrdDlgChange( wxCommandEvent& event );
    void OnBrdAll( wxCommandEvent& event );

    //(*Declarations(wxsSizerParentQP)
    wxRadioButton* PlaceCB;
    wxCheckBox* BrdAll;
    wxCheckBox* PlaceShp;
    wxCheckBox* BrdLeft;
    wxSpinCtrl* BrdSize;
    wxCheckBox* BrdTop;
    wxCheckBox* BrdRight;
    wxRadioButton* PlaceRT;
    wxRadioButton* PlaceRC;
    wxCheckBox* PlaceExp;
    wxRadioButton* PlaceCT;
    wxCheckBox* BrdDlg;
    wxCheckBox* BrdBottom;
    wxRadioButton* PlaceLB;
    wxRadioButton* PlaceRB;
    wxRadioButton* PlaceCC;
    wxStaticLine* StaticLine1;
    wxSpinCtrl* Proportion;
    wxRadioButton* PlaceLT;
    wxRadioButton* PlaceLC;

    virtual void Update();

  private:

    void ReadData();
    void SaveData();

    wxsSizerExtra* m_Extra;
    long m_ParentOrientation;

    DECLARE_EVENT_TABLE()
};

#endif
